# coding:utf-8


def format_insert_fields(fields_list: dict):
    return ','.join(map('`{}`'.format, fields_list)), ('%s,' * len(fields_list))[:-1]


def format_update_fields(fields_list: dict):
    return ','.join(map('`{}`=%s'.format, fields_list))
